package com.hx.er.service.admin;

import java.util.List;
import java.util.Map;

import com.hx.er.bean.base.AnnouncementBean;
import com.hx.er.bean.base.RestraurantBean;
import com.hx.er.bean.base.UserBean;

public interface IAdminRestService {
	public List<RestraurantBean> getRestList(Map<String, Object> conditions);

	public int getRestCount(Map<String, Object> conditions);

	/**
	 * 通过编号查询餐厅信息
	 * 
	 * @param restBean
	 * @return
	 */
	public RestraurantBean getRestById(long restId);
	
	/**
	 * 通过餐馆编号查询公告
	 * 
	 * @param restId
	 * @return
	 */
	public AnnouncementBean getAnnAliveByRestId(long restId);

	/**
	 * 通过对象查询公告
	 * 
	 * @param announcementBean
	 * @return
	 */
	public AnnouncementBean getAnnAlive(AnnouncementBean announcementBean);

	/**
	 * 通过编号删除餐馆
	 * 
	 * @param restId
	 * @return
	 */
	public int reviveRest(RestraurantBean restBean);

	/**
	 * 通过编号删除餐馆
	 * 
	 * @param restId
	 * @return
	 */
	public int deleteRest(RestraurantBean restBean);
	
	/**
	 * 修改餐馆信息
	 * 
	 * @param restBean
	 * @return
	 */
	public int updateRest(RestraurantBean restBean);
	
	/**
	 * 查询用户信息
	 * 
	 * @param userBean
	 * @return
	 */
	public UserBean getUserAliveById(long userId);
	
	/**
	 * 插入餐馆信息
	 * 
	 * @param restBean
	 * @param userBean
	 */
	public Map<String, Boolean> insertRestWithoutId(RestraurantBean restBean, UserBean userBean);
	
	/**
	 * 查询餐厅经理
	 * 
	 * @return
	 */
	public UserBean getManagerByRestId(long restId);
}
